import request from '@/utils/request'

export function getOpenAreaCity(data: any) {
  return request({
    url: '/Commapi/getOpenAreaCity',
    method: 'post',
    data,
  })
}

export function getInvoicingOptions(params: any) {
  return request({
    url: '/commapi/getInvoicingOptions',
    method: 'get',
    params,
  })
}

export function getPaymentOptions(params: any) {
  return request({
    url: '/commapi/getPaymentOptions',
    method: 'get',
    params,
  })
}

export function modProductFile(data: any) {
  return request({
    url: '/Business/modProductFile',
    method: 'post',
    data,
  })
}

export function WorkTaskListModify(data: any) {
  return request({
    url: '/Worktask/WorkTaskListModify',
    method: 'post',
    data,
  })
}
export function WorkTaskListDel(data: any) {
  return request({
    url: '/Worktask/WorkTaskListDel',
    method: 'post',
    data,
  })
}

export function OrderTaskCheck(data: any) {
  return request({
    url: '/Worktask/OrderTaskCheck',
    method: 'post',
    data,
  })
}

export function AllInfo(data: any) {
  return request({
    url: '/Customer/AllInfo',
    method: 'post',
    data,
  })
}

export function saveInvoicingFiles(data: any) {
  return request({
    url: '/Business/saveInvoicingFiles',
    method: 'post',
    data,
  })
}

export function getStaffPostRouteAuth(data: any) {
  return request({
    url: '/Commapi/getStaffPostRouteAuth',
    method: 'post',
    data,
  })
}

// 指定操作人
export function SaveFlowAuthStaff(data: any) {
  return request({
    url: '/SystemSet/SaveFlowAuthStaff',
    method: 'post',
    data,
  })
}
// 单个客户推荐商机
export function CustomerBusiness(data: any) {
  return request({
    url: '/customer/CustomerBusiness',
    method: 'post',
    data,
  })
}

export function OperateCompanySelect(data: any) {
  return request({
    url: '/commapi/OperateCompanySelect',
    method: 'post',
    data,
  })
}

export function OperateDeptmentSelect(data: any) {
  return request({
    url: '/commapi/OperateDeptmentSelect',
    method: 'post',
    data,
  })
}

export function GetStaffSelect(data: any) {
  return request({
    url: '/commapi/GetStaffSelect',
    method: 'post',
    data,
  })
}

export function ImportCustomer(data: any) {
  return request({
    url: '/Customer/ImportCustomer',
    method: 'post',
    data,
  })
}

export function WorkTaskSetDel(params: any) {
  return request({
    url: '/SystemSet/WorkTaskSetDel',
    method: 'get',
    params,
  })
}

export function ImportStaffSelect(data: any) {
  return request({
    url: '/Commapi/ImportStaffSelect',
    method: 'post',
    data,
  })
}

// export function ImportStaffSelect(params: any) {
//   return request({
//     url: '/Commapi/ImportStaffSelect',
//     method: 'get',
//     params,
//   })
// }

export function ProductTaskSetEdit(data: any) {
  return request({
    url: '/SystemSet/ProductTaskSetEdit',
    method: 'post',
    data,
  })
}

export function WorkTaskSetState(data: any) {
  return request({
    url: '/SystemSet/WorkTaskSetState',
    method: 'post',
    data,
  })
}

export function getWorkTaskSetList(data: any) {
  return request({
    url: '/SystemSet/WorkTaskSetList',
    method: 'post',
    data,
  })
}
export function getOrderListInfo(data: any) {
  return request({
    url: '/OrderChange/getOrderListInfo',
    method: 'post',
    data,
  })
}

export function StoreSelect(params: any) {
  return request({
    url: '/commapi/StoreSelect',
    method: 'get',
    params,
  })
}

export function CitySelect(params: any) {
  return request({
    url: '/commapi/CitySelect',
    method: 'get',
    params,
  })
}

export function IndustrySelect(params: any) {
  return request({
    url: '/commapi/IndustrySelect',
    method: 'get',
    params,
  })
}

export function getBusinessClassSelect(params: any) {
  return request({
    url: '/commapi/BizClassSelect',
    method: 'get',
    params,
  })
}

export function ProductClassSelect(params: any) {
  return request({
    url: '/commapi/ProductClassSelect',
    method: 'get',
    params,
  })
}

export function BusinessSelect(params: any) {
  return request({
    url: '/commapi/BusinessSelect',
    method: 'get',
    params,
  })
}

export function BusinessClassSelect(params: any) {
  return request({
    url: '/commapi/BusinessClassSelect',
    method: 'get',
    params,
  })
}

export function ProductSelect(params: any) {
  return request({
    url: '/commapi/ProductSelect',
    method: 'get',
    params,
  })
}

export function GiftSelect(params: any) {
  return request({
    url: '/commapi/GiftSelect',
    method: 'get',
    params,
  })
}

export function getReasonOption(params: any) {
  return request({
    url: '/commapi/getReasonOption',
    method: 'get',
    params,
  })
}

export function CustomerMarkSelect(params: any) {
  return request({
    url: '/commapi/CustomerMarkSelect',
    method: 'get',
    params,
  })
}

export function StaffSelect(params: any) {
  return request({
    url: '/commapi/StaffSelect',
    method: 'get',
    params,
  })
}
export function getMyCompanySelect(params: any) {
  return request({
    url: '/commapi/MyCompanySelect',
    method: 'get',
    params,
  })
}
export function getMyDeptmentSelect(params: any) {
  return request({
    url: '/commapi/MyDeptmentSelect',
    method: 'get',
    params,
  })
}
export function getCompanySelect(params: any) {
  return request({
    url: '/commapi/CompanySelect',
    method: 'get',
    params,
  })
}
export function getDeptmentSelect(params: any) {
  return request({
    url: '/commapi/DeptmentSelect',
    method: 'get',
    params,
  })
}
export function getStaffPostRoleSelect(params: any) {
  return request({
    url: '/commapi/StaffPostRoleSelect',
    method: 'get',
    params,
  })
}
export function getStaffPostSelect(params: any) {
  return request({
    url: '/commapi/StaffPostSelect',
    method: 'get',
    params,
  })
}

export function getStaffPosts(params: any) {
  return request({
    url: '/commapi/getStaffPosts',
    method: 'get',
    params,
  })
}

export function getStaffSelect(params: any) {
  return request({
    url: '/commapi/StaffSelect',
    method: 'get',
    params,
  })
}

export function getIndustrys(params: any) {
  return request({
    url: '/commapi/getIndustrys',
    method: 'get',
    params,
  })
}

export function AssignStaffSelect(params: any) {
  return request({
    url: '/commapi/AssignStaffSelect',
    method: 'get',
    params,
  })
}

export function getKefuOptions(params: any) {
  return request({
    url: '/commapi/getKefuOption',
    method: 'get',
    params,
  })
}
